<?php
if (!defined('FosfoaSystem')) { exit(1);}
class usergroupModel extends spModel
{   var $pk = "gid"; // 主键
	var $table = "usergroup"; // 数据表的名称
   
   public function getaclok($gid){
		$arr = $this->findall(array('gid'=>$gid));
		return $arr[0]['aclok'];
	}
   
       public function findgroup($gid){
		$condition = array('gid'=>$gid);
		$arr = $this->find($condition);
		return $arr;
	}
    
    public function glist(){
        
        $arr = $this->findall();
        return $arr;
    }
}